<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> 编程时间 创建HTML5画布 </title>
    <style>
        canvas {
            border: 2px dotted blue;
        }
    </style>
</head>

<body>
    <canvas id="canvas-element-id" width="800" height="600">Your brower does not support HTML5</canvas>
</body>

</html>